package cn.qiao.es.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * desc:
 *
 * @author qiao
 * @date 2023年02月22日 18:05
 */

@Document(indexName = "article")
public class Article {
    @Id
    @Field(type = FieldType.Long)
    private Long id;

    @Field(type = FieldType.Text)
    private String name;

    /**
     * 文章说明
     */
    @Field(type = FieldType.Text)
    private String description;

    /**
     * 创建时间
     */
    @Field(type = FieldType.Integer)
    private Integer age;

    @Field(type = FieldType.Text)
    private String address;

}
